{% extends 'base.html' %}
{% block title %}
    发表文章
{% endblock %}
{% block scrtpt %}
    {{ super() }}
    <script src="/static/js/tinymce/jquery.tinymce.min.js"></script>
    <script src="/static/js/tinymce/tinymce.min.js"></script>
    <script>
        tinymce.init({
            selector: '#content',
            language: 'zh_CN',
            width: 770,
            height:700,
            toolbar: [
                'undo redo | outdent  indent | fontselect | fontsizeselect | styleselect',
                'lineheight | bold italic underline strikethrough underline | alignleft aligncenter alignright'
            ]
        });
    </script>
{% endblock %}
{% block content %}
    <div class="col-md-5 col-md-offset-3 center-div">
        <form action="{{ url_for('article.articleSave') }}" method="post">
            <div class="form-group">
                <label for="title">文章标题</label>
                <input type="text" class="form-control" id="title" name="title" placeholder="文章标题">
            </div>
            <label for="content">正文编辑</label>
            <textarea name="content" id="content"></textarea>
            <button type="submit" class="btn btn-default">发表文章</button>
        </form>
    </div>
{% endblock %}